package com.zhc.dejingapi.job;

import com.zhc.dejingapi.utils.process.ProcessUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Slf4j
@Configuration
public class CheckADJob {

    public  static  boolean isRunning=false;

    @Resource
    private ProcessUtils processUtils;


    public  void executeJob(){
        if(isRunning){
            log.info("ERPProdClassToQingJob is running");
            return;
        }
        isRunning=true;
        int i=1;
        if(i==10){
            try{

                processUtils.checkAD();
            }
            catch (Exception e){
                log.error("ERPProdClassToQingJob error",e);
            }
        }
        isRunning=false;
    }
}
